package com.ztesoft.sca.service;

import java.util.List;

import com.ztesoft.sca.model.user.ImRolePo;
import org.springframework.stereotype.Service;

import com.ztesoft.sca.dao.ImOrgDao;
import com.ztesoft.sca.model.user.ImOrganizationPo;
import com.ztesoft.sca.model.user.ImUserPo;

@Service
public class ImOrgServiceImpl implements ImOrgService{
  private ImOrgDao imOrgDao;

	@Override
	public List<ImOrganizationPo> listImOrg(ImOrganizationPo imOrg, int from, int size) throws Exception {
		return imOrgDao.listImOrg(imOrg, from, size);
	}
	
	@Override
	public List<ImRolePo> listImOrgRole(ImOrganizationPo imOrg, int from, int size) throws Exception {
		// TODO Auto-generated method stub
		return imOrgDao.listImOrgRole(imOrg, from, size);
	}

	@Override
	public List<ImUserPo> listImOrgUser(ImOrganizationPo imOrg, int from, int size) throws Exception {
		// TODO Auto-generated method stub
		return imOrgDao.listImOrgUser(imOrg, from, size);
	}	
	
	
	@Override
	public void insertImOrg(ImOrganizationPo imOrg) throws Exception {
		imOrgDao.insertImOrg(imOrg);
	}
	
	@Override
	public void delImOrg(ImOrganizationPo imOrg) throws Exception {
		imOrgDao.delImOrg(imOrg);
	}
	
	@Override
	public void modifyImOrg(ImOrganizationPo imOrg) throws Exception {
		imOrgDao.modifyImOrg(imOrg);
	}

	
  
  
}



